package org.example.service.utils.okhttp;


import io.swagger.annotations.ApiModelProperty;
import okhttp3.MediaType;

public class OkHttpParam {

    public static final MediaType MEDIA_TYPE_JSON = MediaType.parse("application/json; charset=utf-8");

    /**
     * 接口URL
     */
    private String apiUrl;
    /**
     * 接口路径
     */
    private String apiPath;
    /**
     * 读取超时时间
     */
    private int readTimeout = 60 * 1000;
    /**
     * 写入超时时间
     */
    private int writeTimeout = 60 * 1000;
    /**
     * 连接超时时间
     */
    private int connectTimeout = 5 * 1000;
    /**
     * 编码类型
     */
    private MediaType mediaType = MEDIA_TYPE_JSON;

    /**
     * 锦江
     */
    private String fizz_appid;
    private String timestamp;
    private String sign;
    private String token;

    private String ucToken;

    private String sso_ticket;
    private String plugin_appid;
    private String plugin_secret;
    /**
     * 华住
     */
    private String authorization;
    private String xplugin;
    private String coparkBaseauth;
    @ApiModelProperty(name = "unI18N", value = "false需要国际化")
    private boolean unI18N;//false需要国际化

    public String getXplugin() {
        return xplugin;
    }

    public void setXplugin(String xplugin) {
        this.xplugin = xplugin;
    }

    public String getUcToken() {
        return ucToken;
    }

    public void setUcToken(String ucToken) {
        this.ucToken = ucToken;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getApiPath() {

        return apiPath;

    }

    public String getCoparkBaseauth() {
        return coparkBaseauth;
    }

    public void setCoparkBaseauth(String coparkBaseauth) {
        this.coparkBaseauth = coparkBaseauth;
    }

    public void setApiPath(String apiPath) {

        this.apiPath = apiPath;

    }



    public int getReadTimeout() {

        return readTimeout;

    }



    public void setReadTimeout(int readTimeout) {

        this.readTimeout = readTimeout;

    }



    public int getWriteTimeout() {

        return writeTimeout;

    }



    public void setWriteTimeout(int writeTimeout) {

        this.writeTimeout = writeTimeout;

    }



    public int getConnectTimeout() {

        return connectTimeout;

    }



    public void setConnectTimeout(int connectTimeout) {

        this.connectTimeout = connectTimeout;

    }



    public MediaType getMediaType() {

        return mediaType;

    }



    public void setMediaType(MediaType mediaType) {

        this.mediaType = mediaType;

    }

    public String getFizz_appid() {
        return fizz_appid;
    }

    public void setFizz_appid(String fizz_appid) {
        this.fizz_appid = fizz_appid;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getAuthorization() {
        return authorization;
    }

    public void setAuthorization(String authorization) {
        this.authorization = authorization;
    }

    public String getSso_ticket() {
        return sso_ticket;
    }

    public void setSso_ticket(String sso_ticket) {
        this.sso_ticket = sso_ticket;
    }

    public String getPlugin_appid() {
        return plugin_appid;
    }

    public void setPlugin_appid(String plugin_appid) {
        this.plugin_appid = plugin_appid;
    }

    public String getPlugin_secret() {
        return plugin_secret;
    }

    public void setPlugin_secret(String plugin_secret) {
        this.plugin_secret = plugin_secret;
    }

    public boolean isUnI18N() {
        return unI18N;
    }

    public void setUnI18N(boolean unI18N) {
        this.unI18N = unI18N;
    }
}
